package com.benny_driving_dri.dao.impl;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import org.apache.http.message.BasicNameValuePair;

import android.util.Log;

import com.benny_driving_dri.constant.HttpConstant;
import com.benny_driving_dri.dao.ResRecordDao;
import com.benny_driving_dri.net.NetTool;

public class ResRecordDaoImp implements ResRecordDao {
	Map<String, String> resDate = null;

	@Override
	public String CancelForm(String jsession) {
		String url = HttpConstant.NEW_URL + HttpConstant.UnFinishedOrder;
		// String url =
		// "http://localhost:8080/benny_driving/order/unFinishedOrder.action";
		String responseDate = null;
		List<BasicNameValuePair> params = new ArrayList<BasicNameValuePair>();
		try {
			resDate = NetTool.sendNameValuePostRequest(url, params, jsession);
			Log.i("HttpTest", resDate.toString());
			responseDate = resDate.get("response");
			Log.i("HttpTest", responseDate);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return responseDate;
	}
}
